import service from '@/utils/request'

export const useLaws_regulationsApi = (id) => {
  return service.get('/business/laws_regulations/' + id)
}

export const useLaws_regulationsSubmitApi = (dataForm) => {
  if (dataForm.id) {
    return service.put('/business/laws_regulations', dataForm)
  } else {
    return service.post('/business/laws_regulations', dataForm)
  }
}
